package com.summerli.feign;

import com.summerli.common.ResponseResult;
import com.summerli.common.sms.SmsSendRequest;
import com.summerli.fallback.SmsClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * feign负载
 */
@FeignClient(name = "service-sms",fallbackFactory = SmsClientFallbackFactory.class)
public interface SmsClient {

    @RequestMapping(value = "/send/alisms-template",method = RequestMethod.POST)
    public ResponseResult sendSms(@RequestBody SmsSendRequest smsSendRequest);
}
